package cn.yup.mapper;

import cn.yup.domain.Employee;
import cn.yup.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {


    List<Employee> selectByCondition(EmployeeQueryObject qo);

    int deleteById(Long id);


    Employee findById(Long id);

    void insert(Employee employee);

    void updateById(Employee employee);

    void deleteRelation(Long id);


    void insertRelation(@Param("empId") Long empId, @Param("roleId") Long roleId);

    Employee selectEmpByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    List<Employee> listAll();
}
